package org.ucn.dmaa0914.gruppe6.tests;

import org.ucn.dmaa0914.gruppe6.Item;
import org.ucn.dmaa0914.gruppe6.ItemCtr;

import junit.framework.TestCase;

public class ItemTest extends TestCase {

	protected void setUp() throws Exception {
		super.setUp();
	}

	public void testGetBarcode() {
		Item i = ItemCtr.getInstance().create();
		ItemCtr.getInstance().updateItem(i.getId(), "79879872", "Hello", 25.50, "kr.");
		assertEquals(i.getBarcode(), "79879872");
	}

}
